package com.company.jrlz.entity;

import com.haulmont.cuba.core.entity.StandardEntity;

import javax.persistence.*;

@Table(name = "JRLZ_DEVICE")
@Entity(name = "jrlz_Device")
public class Device extends StandardEntity {
    private static final long serialVersionUID = 5411497590670797162L;

    @Column(name = "DEVICE_NAME")
    private String deviceName;

    @Column(name = "DEVICE_TYPE")
    private String deviceType;

    @Column(name = "DEVICE_CODE")
    private String deviceCode;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "WORK_STATION_ID")
    private WorkStation workStation;

    @Column(name = "LINE")
    private String line;

    public void setLine(String line) {
        this.line = line;
    }

    public String getLine() {
        return line;
    }

    public String getDeviceType() {
        return deviceType;
    }

    public void setDeviceType(String deviceType) {
        this.deviceType = deviceType;
    }

    public WorkStation getWorkStation() {
        return workStation;
    }

    public void setWorkStation(WorkStation workStation) {
        this.workStation = workStation;
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode;
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName;
    }
}